package com.hospital.hospitalsystem.modules.medicine.service;


import com.hospital.hospitalsystem.modules.medicine.dao.entity.HospitalMedicalHistoryEntity;
import com.hospital.hospitalsystem.modules.medicine.dao.mapper.HospitalMedicalHistoryMapper;
import com.hospital.hospitalsystem.modules.medicine.dto.HospitalMedicalHistoryListReq;
import com.hospital.hospitalsystem.modules.medicine.dto.HospitalMedicalHistoryRsp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2023/4/4
 */
@Component
public class HospitalMedicalHistoryService {

    @Autowired
    private HospitalMedicalHistoryMapper hospitalMedicalHistoryMapper;

    public void insertSelective(HospitalMedicalHistoryEntity hospitalMedicalHistoryEntity) {
        hospitalMedicalHistoryMapper.insertSelective(hospitalMedicalHistoryEntity);
    }

    public List<HospitalMedicalHistoryRsp> getMedicalHistory(HospitalMedicalHistoryListReq req) {
        return hospitalMedicalHistoryMapper.getMedicalHistory(req);
    }
}
